#include "adduserdialog.h"
#include "ui_adduserdialog.h"
#include <QMessageBox>

AddUserDialog::AddUserDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::AddUserDialog)
{
    ui->setupUi(this);
}

AddUserDialog::~AddUserDialog()
{
    delete ui;
}

void AddUserDialog::on_buttonBox_accepted()
{

    QString username = ui->lineEdit->text().trimmed();
    QString password = ui->lineEdit_2->text().trimmed();
    QString email = ui->lineEdit_3->text().trimmed();
    QString tel = ui->lineEdit_4->text().trimmed();

    if(username == "" || password == "")
    {

         return ;

    }

    this->username = username;
    this->password = password;
    this->Email = email;
    this->tel = tel;

}
